<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
/**
 * 后台登录
 */
Route::get('/', 'AdminController@Login');                                   //登录界面
Route::post('/depose_login', 'AdminController@DisposeLogin');               //登录请求
Route::get('/captcha', 'AdminController@Captcha');                          //验证码

Route::group(array('before'=>'admin'), function() {

    /**
     *管理员管理
     */
    Route::get('/manage_admin', 'AdminController@ManageAdmin');                 //管理员管理
    Route::get('/add_admin', 'AdminController@AddAdmin');                       //管理员添加
    Route::any('/edit_admin', 'AdminController@EditAdmin');                     //管理员编辑
    Route::any('/del_admin', 'AdminController@DeleteAdmin');                    //管理员删除
    Route::any('/admin_service_ajax', 'AdminController@AdminServiceAjax');      //管理员ajax


    /**
     *产品
     */
    Route::get('/manage_project', 'AdminController@ManageProject');                        //项目管理
    Route::any('/del_manage_project', 'AdminController@DeleteManageProject');              //项目删除
    Route::any('/admin_manage_project_ajax', 'AdminController@AdminManageProjectAjax');    //项目ajax
    Route::any('/manage_project_modify', 'AdminController@ManageProjectModify');           //项目添加
    Route::any('/add_manage_project', 'AdminController@AddManageProject');                 //项目入库

    Route::any('/company_list', 'AdminController@CompanyList');              //公司列表
    Route::any('/company_add', 'AdminController@CompanyAdd');                //公司录入
    Route::any('/company_edit', 'AdminController@CompanyEdit');              //公司编辑
    Route::any('/f_company_list', 'AdminController@FCompanyList');           //保理公司列表
    Route::any('/f_company_add', 'AdminController@FCompanyAdd');             //保理公司录入
    Route::any('/f_company_edit', 'AdminController@FCompanyEdit');           //保理公司编辑


    /**
     *用户中心
     */

    Route::get('/manage_user', 'AdminController@ManageUser');                 //用户管理
    Route::get('/add_user', 'AdminController@AddUser');                       //用户添加
    Route::any('/edit_user', 'AdminController@EditUser');                     //用户编辑
    Route::any('/del_user', 'AdminController@DeleteUser');                    //用户删除
    Route::any('/user_service_ajax', 'AdminController@UserServiceAjax');      //用户ajax

    Route::get('/invest_record', 'AdminController@InvestRecord');                        //投标记录管理
    Route::any('/del_invest_record', 'AdminController@DeleteInvestRecord');              //投资记录删除
    Route::any('/admin_invest_record_ajax', 'AdminController@AdminInvestRecordAjax');    //投资记录ajax

    Route::get('/ticket_record', 'AdminController@TicketRecord');                         //报票记录管理
    Route::any('/del_ticket_record', 'AdminController@DeleteTicketRecord');                     //报票记录删除
    Route::any('/admin_ticket_record_ajax', 'AdminController@AdminTicketRecordAjax');    //报票记录ajax

    Route::get('/recharge_record', 'AdminController@RechargeRecord');                         //充值记录管理
    Route::any('/del_recharge_record', 'AdminController@DeleteRechargeRecord');                     //充值记录删除
    Route::any('/admin_recharge_record_ajax', 'AdminController@AdminRechargeRecordAjax');    //充值记录ajax

    Route::get('/withdraw_record', 'AdminController@WithdrawRecord');                         //体现记录管理
    Route::any('/del_withdraw_record', 'AdminController@DeleteWithdrawRecord');                     //体现记录删除
    Route::any('/admin_withdraw_record_ajax', 'AdminController@AdminWithdrawRecordAjax');    //体现记录ajax

    Route::get('/bank_manage', 'AdminController@BankManage');                         //用户银行管理
    Route::any('/del_bank_manage', 'AdminController@DeleteBankManage');                     //用户银行删除
    Route::any('/admin_bank_manage_ajax', 'AdminController@AdminBankManageAjax');    //用户银行ajax


    /**
     *日志管理
     */
    Route::get('/log_service', 'AdminController@LogService');                    //日志
    Route::any('/del_log', 'AdminController@DeleteLog');                         //日志删除
    Route::any('/log_service_ajax', 'AdminController@LogServiceAjax');           //日志ajax

    /**
     *广告位管理
     */
    Route::get('/ads_list', 'AdminController@AdsList');                           //广告列表
    Route::any('/add_ads', 'AdminController@AddAds');                             //广告位添加
    Route::any('/edit_ads', 'AdminController@EditAds');                           //广告位编辑
    Route::any('/del_ads', 'AdminController@DelAds');                             //广告位删除
    Route::any('/ads_ajax', 'AdminController@AdsAjax');                           //ajax返回


    /**
     *资讯
     */
    Route::get('/news_list', 'AdminController@NewsList');                          //资讯列表
    Route::any('/news_import', 'AdminController@NewsImport');                      //资讯添加
    Route::any('/news_edit', 'AdminController@NewsEdit');                          //资讯编辑
    Route::any('/news_del', 'AdminController@NewsDel');                            //资讯删除
    Route::any('/news_ajax', 'AdminController@NewsAjax');                          //ajax返回


    /**
     *合作伙伴
     */
    Route::any('/partner_list', 'AdminController@PartnerList');                    //合作伙伴列表
    Route::any('/partner_add', 'AdminController@PartnerAdd');                      //合作伙伴添加
    Route::any('/partner_edit', 'AdminController@PartnerEdit');                    //合作伙伴编辑
    Route::any('/partner_del', 'AdminController@PartnerDel');                      //合作伙伴删除
    Route::any('/partner_ajax', 'AdminController@PartnerAjax');                    //ajax返回


    /**
     *团队
     */
    Route::any('/team_list', 'AdminController@TeamList');                          //团队列表
    Route::any('/team_add', 'AdminController@TeamAdd');                            //团队添加
    Route::any('/team_edit', 'AdminController@TeamEdit');                          //团队编辑
    Route::any('/team_del', 'AdminController@TeamDel');                            //团队删除
    Route::any('/team_ajax', 'AdminController@TeamAjax');                          //ajax返回


    /**
     *招聘
     */
    Route::any('/recruit_list', 'AdminController@RecruitList');                        //招聘列表
    Route::any('/recruit_add', 'AdminController@RecruitAdd');                          //招聘添加
    Route::any('/recruit_edit', 'AdminController@RecruitEdit');                        //招聘编辑
    Route::any('/recruit_del', 'AdminController@RecruitDel');                          //招聘删除
    Route::any('/recruit_ajax', 'AdminController@RecruitAjax');                        //ajax返回



});


















